<?php

namespace addons\DailyWork\common\enums;
use common\enums\BaseEnum;
/**
 * 枚举
 *
 * Class GenderEnum
 * @package common\enums
 * @author YiiFrame <21931118@qq.com>
 */
class DailyWorkEnum extends BaseEnum
{
    const Days = 0;
    const Weeks = 1;
    const Months = 2;

    /**
     * @return array
     */
    public static function getMap(): array
    {
        return [
            self::Days => '日报',
            self::Weeks => '周报',
            self::Months => '月报',
        ];
    }

    public static function getValue($key): string
    {
        return static::getMap()[$key] ?? '';
    }
}